import request from "@/core/request.js";

// 求职者获取收藏的企业信息
export const getQiuzhiFavList = (data)=> request({url:"/fav/seekerGetList",method:'post',data})

// 求职者获取自己的求职意向
export const getPostList = (data)=>request({url:"/info/qiuzhi/getGangwei"})

// 求职者获取企业列表
export const getQiyeList = (data)=> request({url:"/info/zhaopin/getZhaopinList",data,method:'post'})

// 维权咨询提交
export const submitConsolt = (data) => request({url:"/serve/weiquan/save",data,method:'post'})

// 岗位详情
export const getPostDetail = (data) => request({url:`/info/zhaopin/getZhaopinOne/${data.id}`})

// 收藏岗位
export const favPost = (data)=> request({url:`/fav/favZhaopin/${data.id}`})

// 取消收藏岗位
export const notFavPost = (data) => request({url:`/fav/removeFavZhaopin/${data.id}`})

// 企业详情
export const companyDetail = (data)=> request({url:`/account/company/getCompany/${data.id}`})

// 获取serve对应列表
export const getServeList = (data)=> request({url:"/serve/content/getList",data,method:'post'})

// 发布求职意向
export const postSubmit = (data) => request({url:"/info/qiuzhi/save",data,method:'post'})

// 求职者获取自己的求职列表
export const postListToMy = (data) => request({url:"/info/qiuzhi/getMyList",data,method:'post'})

// 求职者查看自己发布的求职意向详情
export const postDetailToMy = (data) => request({url:`/info/qiuzhi/getOneMy/${data.id}`})

// 求职者编辑自己发布的求职意向
export const postUpdate = (data) => request({url:"/info/qiuzhi/edit",data,method:'post'})

// 获取个人信息
export const getMyInfo = ()  => request({url:"/account/seeker/getMy"})

// 编辑隐私设置
export const updatePrivacy= (data)=> request({url:"/account/seeker/editIsSet",data,method:'post'})

// 编辑个人信息
export const updateMyInfo= (data)=> request({url:"/account/seeker/editMy",data,method:'post'})

// 获取点评列表
export const remarkList = (data) => request({url:"/comment/seekerGetList",data,method:'post'});

// 获取在职企业列表
export const myToCompanyList = () => request({url:"/hezuo/getCompany"})

// 申请结业点评
export const remarkSubmit = (data) => request({url:"/comment/applyComment",data,method:'post'})

// 编辑结业点评
export const remarkUpdate = (data) => request({url:"/comment/applyComment",data,method:'post'})

// 查看结业点评详情
export const remarkDetail = (data) => request({url:`/comment/getOne/${data.id}`})

//个人中心统计数据
export const getMyTongji = () => request({url:"/account/seeker/getTongji"})

// 修改个人头像
export const updateSeekerAvatar = (data)=> request({url:"/account/seeker/editMyAvatar",data,method:'post'})

// 求职端点击立即沟通
export const sessionSeeker = (data) => request({url:`/sess/seekerSave/${data.id}`})

// 切换求职
export const openOrClose = (data) => request({url:`/info/qiuzhi/setIsOk/${data.id}/${data.isOk}`})

// 删除求职信息
export const removeSeeker = (data) => request({url:`/info/qiuzhi/remove/${data.id}`})
// 确认是否保险跟踪
export const baoxianSeeker = (data)=> request({url:`/sess/setIsTongyi/${data.id}/${data.isTongyi}`})

//获取沟通过的会话列表
export const getQiuzhiGoutongList = (data)=> request({url:`/info/zhaopin/getIsSesslogZhaopinList`,data,method:'post'})